package dongshi.daddy.mbean;

public class User implements UserMBean {
    private static String url = "https://zhuanlan.zhihu.com/p/166530442";

    @Override
    public String getName() {
        return "风筝";
    }

    @Override
    public String getPassword() {
        return "密码不可见";
    }

    @Override
    public String getPhone() {
        return "18900000000";
    }

    @Override
    public void say() {
        System.out.println("Hello JMX");
    }

    @Override
    public void changeUrl(String url) {
        System.out.println("url值修改前为：" + User.url);
        User.url = url;
        System.out.println("url值修改后为：" + User.url);
    }
}
